package com.ruyuan.eshop.market.service;

import com.ruyuan.eshop.market.domain.dto.UserCouponDTO;
import com.ruyuan.eshop.market.domain.query.UserCouponQuery;
import com.ruyuan.eshop.market.domain.request.LockUserCouponRequest;
import com.ruyuan.eshop.market.domain.request.ReleaseUserCouponRequest;
/**
 <p>
 优惠券管理service接口
 </p>
 * 儒猿课堂: http://www.ruyuan2020.com
 * @Author zhonghuashishan
 * @Remark 有问题直接联系客服VX: ruyuan-1111 ，源码-笔记-技术交流群
 * @Version 1.0
 **/
public interface CouponService {

    /**
     * 查询用户的优惠券信息
     *
     * @param userCouponQuery
     * @return
     */
    UserCouponDTO getUserCoupon(UserCouponQuery userCouponQuery);

    /**
     * 锁定用户优惠券
     *
     * @param lockUserCouponRequest
     * @return
     */
    Boolean lockUserCoupon(LockUserCouponRequest lockUserCouponRequest);

    /**
     * 释放用户优惠券
     */
    Boolean releaseUserCoupon(ReleaseUserCouponRequest releaseUserCouponRequest);
}
